#ifndef ACTIVECODEREQUEST_H
#define ACTIVECODEREQUEST_H

#include "network/networkgetjsonlistrequest.h"
#include "network/networkgetjsonrequest.h"

#include <QObject>

class ActiveCodeResponse;
class ActiveCodeRequest : public Network::GetJSONRequest
{
    Q_OBJECT
public:
    ActiveCodeRequest(QString phone);
    virtual ~ActiveCodeRequest();

private:
    ActiveCodeResponse *m_response;
    QString m_phone;

private:
    Network::JSONResponse &jsonResponse();

public:
    const Network::JSONResponse &jsonResponse() const;
    QUrl url() const;

};

#endif // ACTIVECODEREQUEST_H
